/**
 * Copyright (c) 2024,  科泰集团教研团队
 * 版权所有，请勿侵权
 */
package com.ktjiaoyu.service;
import com.ktjiaoyu.utils.Page;
import java.util.List;
import com.ktjiaoyu.entity.StorageRecord;

/**
 *
 * @author 科泰集团教研团队
 * @packageName com.ktjiaoyu
 * @fileName StorageRecord.java
 * @createTime 2024/10/22 09:31:42
 * @lastModify 2024/10/22 09:31:42
 * @version 1.0.0
 */
public interface StorageRecordService {
	/**
	 * 分页查询
	 * @param entity 查询条件实体对象
	 */
	public Page<StorageRecord> findPage(StorageRecord entity, Integer pageNo, Integer pageSize) throws Exception;
	/**
	 * 查询全部
	 */
	public List<StorageRecord> findAll() throws Exception;
	/**
	 * 根据ID查询
	 */
	public StorageRecord findById(Long id) throws Exception;
	/**
	 * 保存实体数据
	 */
	public boolean save(StorageRecord entity) throws Exception;
	/**
	 * 修改实体数据
	 */
	public boolean modify(StorageRecord entity) throws Exception;
	/**
	 * 删除数据
	 */
	public boolean remove(Long id) throws Exception;

    boolean saveOrUpdate(StorageRecord storageRecord) throws Exception;

	StorageRecord findBySrCode(String srCode) throws Exception;
}
